﻿<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-access="property" default-lazy="true" namespace="Cms.Domain" assembly="Cms.Domain">
  <class name="Membership" table="cmsMembership">
    <cache usage="read-write" />
    <id name="ID" type="System.Int32" unsaved-value="0">
      <column name="ID" />
      <generator class="identity" />
    </id>
    <many-to-one name="User" column="UserID" not-null="true" />
    <many-to-one name="UserGroup" column="UserGroupID" not-null="true" />
    <property name="StartDate" column="StartDate" not-null="false" type="System.DateTime" />
    <property name="EndDate" column="EndDate" not-null="false" type="System.DateTime" />
  </class>
</hibernate-mapping>